using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Org.Loon.Framework.Xna.Game.Action.Scripting
{
    public class Script
    {
        private String name;

        private List<Function> functions = new List<Function>();

        public const int COMPLETE_SCRIPT = 0;

        public const int COMPLETE_FUNCTION = 1;

        public const int UNCOMPLETE_FUNCTION = 2;

        public string GetName()
        {
            return name;
        }

        public Script(string name)
        {
            this.name = name;
        }

        public int Size()
        {
            return functions.Count;
        }

        public Function GetFunction(int index)
        {
            return (Function)functions[index];
        }

        public void Add(Function fun)
        {
            functions.Add(fun);
        }
    }
}
